package com.jxy.homepage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 
 * @TableName j_user
 */
@TableName(value ="j_user")
@Data
public class User implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @NotNull(message = "ename is not null")
    @TableField("ENAME")
    private String ename;

    /**
     * 
     */
    @TableField("CNAME")
    private String cname;

    /**
     *
     */
    @NotNull(message = "password is not null")
    @TableField("PASSWORD")
    private String  password;

    @TableField("EMAIL")
    private String email;

    @TableField("PHONE")
    private String phone;

    @TableField("USER_ID")
    private String userId;

    @TableField("CREATE_TIME")
    private String createTime;
    @TableField("UPDATE_TIME")
    private String updateTime;
    @TableField("ENV_TYPE")
    private Integer envType;
    @TableField("VERSION")
    private String version;
    @TableField("ENABLED")
    private Integer enabled;

    @TableField(exist = false)
    @JsonIgnore
    private static final long serialVersionUID = 1L;

}